package com.tiany.java_study_exercise.BankTest;

public class BankTest {
    public static void main(String[] args) {
        Bank bank=new Bank();
        bank.addCustomer("long","tom");
        bank.getCustomer(0).setAccount(new Account(1000));
        bank.getCustomer(0).getAccount().deposit(200);
        bank.getCustomer(0).getAccount().withdraw(1192);
        bank.addCustomer("juan","kea");
        bank.getCustomer(1).setAccount(new Account(2000000));

        System.out.println(bank.getNumberOfCustomer()+" "+bank.getCustomer(1).getAccount().getBalance());
    }
}
